//引入react核心库
import React from 'react'
//引入ReactDOM
import ReactDOM from 'react-dom'
//引入App
import App from './App'
import store from './redux/store'

ReactDOM.render(<App/>, document.getElementById('root'))

// 这样写不会引起效率底下，，因为react有diff算法
store.subscribe(()=>{
    ReactDOM.render(<App/>, document.getElementById('root'))
})